package com.question.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 选择题 选项实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Choice implements Serializable {
    private Integer choiceId;       // 选项ID
    private Integer questionId;     // 关联的题目ID

    @NotNull(message = "选项内容不能为空")
    private String choiceContent;   // 选项内容

    @NotNull(message = "正确性标记不能为空")
    private Boolean isCorrect;      // 是否为正确选项
}